package com.bangbang.service.impl;

import com.bangbang.pojo.TbAdvertisingOrder;
import com.bangbang.mapper.TbAdvertisingOrderMapper;
import com.bangbang.service.ITbAdvertisingOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 广告订单表 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-08-14
 */
@Service
public class TbAdvertisingOrderServiceImpl extends ServiceImpl<TbAdvertisingOrderMapper, TbAdvertisingOrder> implements ITbAdvertisingOrderService {

    @Autowired
    private TbAdvertisingOrderMapper orderMapper;

    @Override
    public void saveResultId(TbAdvertisingOrder order) {
        orderMapper.saveResultId(order);
    }

    @Override
    public TbAdvertisingOrder selectByOrderId(String out_trade_out) {
        long l = Long.parseLong(out_trade_out+"");
        return orderMapper.selectById(l);
    }
}
